--- scangearmp2.orig/src/canon_mfp_tools.c	2023-03-08 14:07:54.261226941 +1300
+++ scangearmp2/src/canon_mfp_tools.c	2023-03-08 14:09:44.926237600 +1300
@@ -394,7 +394,7 @@
 		goto onErr;
 	}
 	/* search canon mfp */
-	numdev = libusb_get_device_list(NULL, &g_devlist);
+	numdev = libusb_get_device_list(g_context, &g_devlist);
 	if((int)numdev == 0) {
 		err = CN_USB_WRITE_ERROR;
 		goto onErr;
